package com.heima.wemedia.controller.feign;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmUser;
import com.heima.wemedia.service.WmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/apUser/auth")
public class ApUserAuthController {

    @Autowired
    private WmUserService wmUserService;

    @PostMapping("/pass")
    public ResponseResult pass(@RequestBody WmUser wmUser){
        return wmUserService.pass(wmUser);
    }
}
